<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<title>iframe自适应高度</title>
		<style>
			iframe {
				border: none;
				/* width: 100%; */
			}
		</style>
	</head>
	<body>
		<!-- 被嵌入的文档 -->
		<iframe title="" src="assets/include/include.html"
			onload="this.height=this.contentWindow.document.body.clientHeight"></iframe>
		<iframe title="" src="assets/include/include.html"
			onload="this.height=this.contentWindow.document.body.scrollHeight"></iframe>
	</body>
</html>
